<?php

class Area extends \Eloquent {
	protected $fillable = [];

    public function machinepr(){
        return $this->hasOne('Machinepr');
    }

    public function fatherinfo(){
        return $this->hasOne('Area', 'id', 'father_id');
    }
    public function cityinfo(){
        return $this->hasOne('Area', 'id', 'city_id');
    }
}